{"id":37615,"date":"2016-06-27T16:31:45","date_gmt":"2016-06-27T16:31:45","guid":{"rendered":"https:\/\/www.vmengine.net\/2016\/06\/27\/installing-the-code-deploy-agent-on-debian-heres-how-to-do-it\/"},"modified":"2025-05-23T17:14:22","modified_gmt":"2025-05-23T17:14:22","slug":"installing-the-code-deploy-agent-on-debian-heres-how-to-do-it","status":"publish","type":"post","link":"http:\/\/temp_new.vmenginelab.com\/en\/2016\/06\/27\/installing-the-code-deploy-agent-on-debian-heres-how-to-do-it\/","title":{"rendered":"Installing the Code Deploy Agent on Debian, here&#8217;s how to do it"},"content":{"rendered":"<p><a href=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/06\/aws-april-webinar-series-getting-started-with-aws-codedeploy-10-638.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-2448 size-full\" src=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/06\/aws-april-webinar-series-getting-started-with-aws-codedeploy-10-638.jpg\" alt=\"aws-codedeploy\" width=\"638\" height=\"359\" srcset=\"http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/06\/aws-april-webinar-series-getting-started-with-aws-codedeploy-10-638.jpg 638w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/06\/aws-april-webinar-series-getting-started-with-aws-codedeploy-10-638-300x169.jpg 300w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/a><\/p>\n<p>When using a <strong>Debian<\/strong> environment with <strong>CodeDeploy<\/strong> , you too will have come up against a dependency that is difficult to satisfy: Ruby 2.0.<\/p>\n<p>Since this version was deprecated on February 24, 2016, this version can be installed by compiling the source code or using an RVM.<\/p>\n<p>Using RVM is a good choice and the installation is very simple:<br \/>\n<strong>Here&#8217;s how to install dependencies:<\/strong><\/p>\n<p style=\"text-align: center;\"><em>sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev automake libtool bison subversion nodejs libncurses-dev<\/em><\/p>\n<p style=\"text-align: left;\"><strong>Here&#8217;s how to install RVM and Ruby:<\/strong><\/p>\n<p style=\"text-align: center;\"><em>gpg &#8211;keyserver hkp:\/\/keys.gnupg.net &#8211;recv-keys D39DC0E3<br \/>\n<\/em><em>curl -sSL https:\/\/get.rvm.io | bash -s stable<br \/>\n<\/em><em>source \/etc\/profile.d\/rvm.sh<br \/>\n<\/em><em>RVM Requirements<br \/>\n<\/em><em>RVM list known<\/em> (check if there is version 2.0.0<sup>2<\/sup>)<br \/>\n<em>RVM install 2.0.0<br \/>\n<\/em><em>RVM use 2.0.0 &#8211;default<\/em><\/p>\n<p><strong>Here&#8217;s how to install the &#8220;OpenSSL&#8221; gem:<\/strong><\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">gem install openssl<\/span><\/i><\/p>\n<p>Once you&#8217;ve done this, you&#8217;ll be able to install the agent&#8217;s DEB package downloaded directly from an Amazon bucket (<a href=\"http:\/\/docs.aws.amazon.com\/codedeploy\/latest\/userguide\/resource-kit.html\" target=\"_blank\" rel=\"noopener\">guide<\/a>).<\/p>\n<p>At this point, if everything was successful, you will only have to check that the agent is started but, as often happens, the DEB does not find Ruby 2.0 and, since this dependency is not satisfied, the installation fails. Even if you try to compile the agent, this fundamental dependency doesn&#8217;t seem to be respected, even though it actually is.<\/p>\n<p>To solve this problem, developer <a href=\"https:\/\/www.linkedin.com\/in\/panayiotisthomakos\"><br \/>\n  <strong>Panayiotis Thomakos<\/strong><br \/>\n<\/a>, developed a fork from <a href=\"https:\/\/github.com\/aws\/aws-codedeploy-agent\" target=\"_blank\" rel=\"noopener\">the agent&#8217;s source<\/a> and created a <a href=\"https:\/\/rubygems.org\/gems\/aws-codedeploy-agent\/versions\/0.1.0\" target=\"_blank\" rel=\"noopener\">gem<\/a>.<\/p>\n<p><strong>To install it, all you need is a simple:<\/strong><\/p>\n<p style=\"text-align: center;\"><em>sudo gem install aws-codedeploy-agent<\/em><br \/>\n<em>sudo service codedeploy-agent start<\/em><\/p>\n<p style=\"text-align: left;\">Yes, you can also install the latest version of <strong>Ruby<\/strong> without 2.0.<\/p>\n<p style=\"text-align: left;\">Easy, isn&#8217;t it?<\/p>\n<p style=\"text-align: left;\">This solution has been recognized as working by Amazon Web Services Support in an exchange within an issue, but it should be noted that the official documentation does not list Debian as a supported system and that the gem mentioned above may not be updated by the developer unlike the continuous updates that we record on the agent.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/AWS-Support-CodeDeploy.png\" target=\"_blank\" rel=\"attachment wp-att-2394 noopener\"><img decoding=\"async\" class=\"alignnone wp-image-2394 size-full\" src=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/AWS-Support-CodeDeploy.png\" alt=\"AWS Support CodeDeploy\" width=\"986\" height=\"466\" srcset=\"http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/AWS-Support-CodeDeploy.png 986w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/AWS-Support-CodeDeploy-300x142.png 300w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/AWS-Support-CodeDeploy-768x363.png 768w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/AWS-Support-CodeDeploy-720x340.png 720w\" sizes=\"(max-width: 986px) 100vw, 986px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>1<br \/>\n<a href=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0.png\" target=\"_blank\" rel=\"attachment wp-att-2389 noopener\"><img decoding=\"async\" class=\"alignnone wp-image-2389 size-full\" src=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0.png\" alt=\"RVM Ruby 2.0\" width=\"1385\" height=\"119\" srcset=\"http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0.png 1385w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0-300x26.png 300w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0-1024x88.png 1024w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0-768x66.png 768w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-2.0-720x62.png 720w\" sizes=\"(max-width: 1385px) 100vw, 1385px\" \/><\/a><\/p>\n<p>2<br \/>\n<a href=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-List.png\" target=\"_blank\" rel=\"attachment wp-att-2388 noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2388 size-full\" src=\"https:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-List.png\" alt=\"RVM Ruby List\" width=\"483\" height=\"262\" srcset=\"http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-List.png 483w, http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/05\/RVM-Ruby-List-300x163.png 300w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using a Debian environment with CodeDeploy , you too will have come up against a dependency that is difficult to satisfy: Ruby 2.0. Since this version was deprecated on February 24, 2016, this version can be installed by compiling the source code or using an RVM. Using RVM is a good choice and the [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":28926,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[3259,1103,133,134,3260,3261,3262,3263,3264,3265,2509,228],"class_list":["post-37615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-en","tag-agent-en","tag-amazon-en","tag-aws-en","tag-cloud-computing-en","tag-codedeploy-en","tag-dependencies","tag-gem-en","tag-gem-en-2","tag-install","tag-problem","tag-ruby-en","tag-technical-en"],"aioseo_notices":[],"jetpack_featured_media_url":"http:\/\/temp_new.vmenginelab.com\/wp-content\/uploads\/2016\/06\/aws-codedeploy-1.png","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/posts\/37615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/comments?post=37615"}],"version-history":[{"count":1,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/posts\/37615\/revisions"}],"predecessor-version":[{"id":41242,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/posts\/37615\/revisions\/41242"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/media\/28926"}],"wp:attachment":[{"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/media?parent=37615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/categories?post=37615"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/temp_new.vmenginelab.com\/en\/wp-json\/wp\/v2\/tags?post=37615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}